﻿using elctronixMVC.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace elctronixMVC.Controllers
{
    public class BaseController : Controller
    {
        //
        // GET: /Base/

        electronicDataDataContext db = new electronicDataDataContext();

        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            List<Menu> mn = Menu.menulergetir();
            ViewBag.menuler = mn;

            List<kategoriler> ls = kategoriler.categorigetir();
            ViewBag.kategoriler = ls;

            ViewBag.tedarikciler = db.markalars.ToList();

            siparisler s = new siparisler();
            s.xmlsepetoku();
            ViewBag.kalem = s.kalem;
            ViewBag.tutar = s.sepettutar;



            base.Initialize(requestContext);
        }
    }
}
